<h1><?php echo $this->topic->subject ?></h1>

<?php if($this->topic): ?>
<table border="0" class="topic">
    <tr class="heading">
        <td class="col1"><?php echo $helper->translate('Autor') ?></td>
        <td class="col2"><?php echo $helper->translate('Nachricht') ?></td>
    </tr>
    <?php foreach($this->replies AS $reply): ?>
    <tr class="subheading">
        <td colspan="2"><?php echo $helper->translate('Verfasst am') ?> <?php echo $helper->datetime($reply->crdate) ?></td>
    </tr>
    <tr>
        <td class="col1">
            <?php echo $reply->author ?><br />
            <?php echo $helper->translate('Dabei seit') ?>: <?php echo $helper->date($reply->joined_tstamp) ?><br />
            <?php echo $helper->translate('Beitraege') ?>: <?php echo $reply->post_count ?>
        </td>
        <td class="col2">
            <p class="title"><?php echo $reply->subject ?></p>
            <p class="message"><?php echo nl2br($reply->message) ?></p>
        </td>
    </tr>
    <?php endforeach; ?>
    <tr class="subheading">
        <td colspan="2"><?php echo $helper->translate('Verfasst am') ?> <?php echo $helper->datetime($this->topic->crdate) ?></td>
    </tr>
    <tr>
        <td class="col1">
            <?php echo $this->topic->author ?><br />
            <?php echo $helper->translate('Dabei seit') ?>: <?php echo $helper->date($this->topic->joined_tstamp) ?><br />
            <?php echo $helper->translate('Beitraege') ?>: <?php echo $this->topic->post_count ?>
        </td>
        <td class="col2">
            <p class="message"><?php echo nl2br($this->topic->message) ?></p>
        </td>
    </tr>
</table>
<?php endif; ?>

